# 公网IPv4地址测试
# 预期结果：应报警，识别为公网IPv4地址

# 公网IPv4地址
public_ipv4 = "8.8.8.8"  # Google DNS服务器IP

# 使用该IP的配置
config = {
    "dns_server": public_ipv4,
    "description": "Google公共DNS服务器",
    "port": 53
}

# 模拟使用该IP的代码
def query_dns(ip):
    print(f"正在查询DNS服务器: {ip}")
    # 模拟DNS查询代码
    return {"status": "success", "response_time": "10ms"}

print(f"公网IPv4地址: {public_ipv4}")
print(f"配置信息: {config}")
result = query_dns(public_ipv4)
print(f"查询结果: {result}")